package com.difsonapps.contacttranslator.service.itf;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.difsonapps.contacttranslator.dto.ContactDTO;

@Transactional
public interface ContactService {
	@Transactional
	public void insert(ContactDTO contactDTO);

	@Transactional
	public void update(ContactDTO contactDTO);

	@Transactional
	public ContactDTO get(int id);

	@SuppressWarnings("unchecked")
	@Transactional
	public List<ContactDTO> getAll();

	@Transactional
	public void delete(ContactDTO contactDTO);

	@Transactional
	@SuppressWarnings("unchecked")
	public ContactDTO getByContactIdDeviceId(String contactid,
			String deviceid);
	

	@Transactional
	@SuppressWarnings("unchecked")
	public List<ContactDTO> getByUserEmail(String email);
	

	@Transactional
	@SuppressWarnings("unchecked")
	public List<ContactDTO> getByNumberAndEmail(String contactid, String deviceid, String email, String[] listOffNumber  , String[] listOffEmails );
}
